<?
session_start();

include_once('includes/Savant/Savant3.php');
include_once('includes/class.tokkotai.php');
$_tok = new tokkotai;

$_tpl = new Savant3(array('template_path'=>dirname(__FILE__) . '/templates'));
$_tpl->repos = $_tok->get_repositories();
if(count($_tpl->repos) == 1)
{
	$_tpl->authors = $_tok->get_authors($_tpl->repos[0]['id']);
}
else
{
	$_tpl->authors = $_tok->get_authors();
}
$_tpl->search = $_tok->get_search();
$_tpl->display('start.tpl.php');
$_tpl->display('form.tpl.php');
$_tpl->display('foot/form.tpl.php');
$_tpl->display('end.tpl.php');
?>
